<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>智能垃圾桶平台</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="plugins/iCheck/flat/blue.css">
  <!-- Morris chart -->
  <!-- jvectormap -->
  <link rel="stylesheet" href="plugins/jvectormap/jquery-jvectormap-1.2.2.css">
  <!-- Date Picker -->
  <link rel="stylesheet" href="plugins/datepicker/datepicker3.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css">
  <!-- bootstrap wysihtml5 - text editor -->
  <link rel="stylesheet" href="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
    <script src="http://cache.amap.com/lbs/static/es5.min.js"></script>
    <script src="http://webapi.amap.com/maps?v=1.3&key=0b26981dfe81b58acb8b3b96cfb65fe0"></script>
    <script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script>
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
<style type="text/css">
        .info {
            border: solid 1px silver;
        }
        div.info-top {
            position: relative;
            background: none repeat scroll 0 0 #F9F9F9;
            border-bottom: 1px solid #CCC;
            border-radius: 5px 5px 0 0;
        }
        div.info-top div {
            display: inline-block;
            color: #333333;
            font-size: 14px;
            font-weight: bold;
            line-height: 31px;
            padding: 0 10px;
        }
        div.info-top img {
            position: absolute;
            top: 10px;
            right: 10px;
            transition-duration: 0.25s;
        }
        div.info-top img:hover {
            box-shadow: 0px 0px 5px #000;
        }
        div.info-middle {
            font-size: 12px;
            padding: 6px;
            line-height: 20px;
        }
        div.info-bottom {
            height: 0px;
            width: 100%;
            clear: both;
            text-align: center;
        }
        div.info-bottom img {
            position: relative;
            z-index: 104;
        }
        span {
            margin-left: 1px;
        }
        .info-middle img {
            float: left;
            margin-right: 6px;
        }
    </style>

<style class="cp-pen-styles">


.box{
  width: 250px;
  height: 200px;
  position: absolute;
  left: calc(50% - 125px);
  top: calc(50% - 100px);
  left: -webkit-calc(50% - 125px);
  top: -webkit-calc(50% - 100px);
}

.box span{
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 20px;
  position: absolute;
}

.box span:nth-child(2){
  top: 2px;
  left: 125px;
}

.box span:nth-child(7){
  top: 85px;
  left: 125px;
}

.box span:nth-child(12){
  top: 165px;
  left: 125px;
}

.server{
  width: 110px;
  height: 30px;
  background: #3a3a3a;
  border-radius: 1px;
}

.server ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

.server:first-child ul li{
  width: 6px;
  height: 6px;
  float: left;
  margin-left: 10px;
  margin-top: 12px;
  background: rgba(149,244,118,0.6);
}

.server ul li:first-child{
  -webkit-animation: pattern1 0.14s linear infinite;
}

.server ul li:nth-child(2){
  -webkit-animation: pattern1 0.14s 0.02s linear infinite;
}

.server ul li:last-child{
  -webkit-animation: pattern1 0.14s 0.05s linear infinite;
}

@-webkit-keyframes pattern1{
  0%{
    background: rgba(149,244,118,0.6);
  }
  100%{
    background: rgba(149,244,118,1);
  }
}

.warning ul li{
  width: 6px;
  height: 6px;
  float: left;
  margin-left: 10px;
  margin-top: 12px;
  background: rgba(245,190,0,0.6);
}

.warning ul li:first-child{
  -webkit-animation: pattern2 0.14s linear infinite;
}

.warning ul li:nth-child(2){
  -webkit-animation: pattern2 0.14s 0.02s linear infinite;
}

.warning ul li:last-child{
  -webkit-animation: pattern2 0.14s 0.05s linear infinite;
}

@-webkit-keyframes pattern2{
  0%{
    background: rgba(245,190,0,0.6);
  }
  100%{
    background: rgba(245,190,0,1);
  }
}

.error ul li{
  width: 6px;
  height: 6px;
  float: left;
  margin-left: 10px;
  margin-top: 12px;
  background: rgba(236,69,62,0.6);
}

.error ul li:first-child{
  -webkit-animation: pattern3 0.9s linear infinite;
}

.error ul li:nth-child(2){
  -webkit-animation: pattern3 0.9s linear infinite;
}

.error ul li:last-child{
  -webkit-animation: pattern3 0.9s linear infinite;
}

@-webkit-keyframes pattern3{
  0%{
    background: rgba(236,69,62,0.6);
  }
  80%{
    background: rgba(236,69,62,0.6);
  }
  100%{
    background: rgba(236,69,62,1);
  }
}</style>

<style class="cp-pen-styles">#shiva
{
  width: 80px;
	height: 80px;
	background: red;
	-moz-border-radius: 50px;
	-webkit-border-radius: 50px;
	border-radius: 50px;
  margin:5px;
  margin-top: -10px;
  margin-left: 80px;
  text-align:center;
}
.count
{
  line-height: 80px;
  color:white;
  font-size:25px;
}

.linker
{
  font-size : 20px;
  font-color: black;
}
</style>


<style class="cp-pen-styles">
.green {
  margin-top: -10px;
  margin-left:80px;
}
.green .progress,
.red .progress,
.orange .progress {
  position: relative;
  border-radius: 50%;
}
.green .progress,
.red .progress,
.orange .progress {
  width: 100px;
  height: 100px;
}
.green .progress {
  border: 5px solid #53fc53;
}
.green .progress {
  box-shadow: 0 0 20px #029502;
}
.green .progress,
.red .progress,
.orange .progress {
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
  position: absolute;
  overflow: hidden;
  z-index: 2;
  border-radius: 50%;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
  width: 90px;
  height: 90px;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
  border: 5px solid #1a1a1a;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
}
.green .progress .inner .water,
.red .progress .inner .water,
.orange .progress .inner .water {
  position: absolute;
  z-index: 1;
  width: 200%;
  height: 200%;
  left: -50%;
  border-radius: 40%;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-name: spin;
  animation-name: spin;
}
.green .progress .inner .water {
  top: 25%;
}
.green .progress .inner .water {
  background: rgba(83,252,83,0.5);
}
.green .progress .inner .water,
.red .progress .inner .water,
.orange .progress .inner .water {
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
}
.green .progress .inner .water,
.red .progress .inner .water,
.orange .progress .inner .water {
  -webkit-animation-duration: 10s;
  animation-duration: 10s;
}
.green .progress .inner .water {
  box-shadow: 0 0 20px #03bc03;
}
.green .progress .inner .glare,
.red .progress .inner .glare,
.orange .progress .inner .glare {
  position: absolute;
  top: -120%;
  left: -120%;
  z-index: 5;
  width: 200%;
  height: 200%;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  border-radius: 50%;
}
.green .progress .inner .glare,
.red .progress .inner .glare,
.orange .progress .inner .glare {
  background-color: rgba(255,255,255,0.15);
}
.green .progress .inner .glare,
.red .progress .inner .glare,
.orange .progress .inner .glare {
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
}
.green .progress .inner .percent,
.red .progress .inner .percent,
.orange .progress .inner .percent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-weight: bold;
  text-align: center;
}
.green .progress .inner .percent,
.red .progress .inner .percent,
.orange .progress .inner .percent {
  line-height: 80px;
  font-size: 20.3076923076923px;
}
.green .progress .inner .percent {
  color: #03c603;
}
.green .progress .inner .percent {
  text-shadow: 0 0 10px #029502;
}
.green .progress .inner .percent,
.red .progress .inner .percent,
.orange .progress .inner .percent {
  -webkit-transition: all 1s ease;
  transition: all 1s ease;
}
.red {
  margin-top: 15px;
}
.red .progress {
  border: 5px solid #ed3b3b;
}
.red .progress {
  box-shadow: 0 0 20px #7a0b0b;
}
.red .progress .inner .water {
  top: 75%;
}
.red .progress .inner .water {
  background: rgba(237,59,59,0.5);
}
.red .progress .inner .water {
  box-shadow: 0 0 20px #9b0e0e;
}
.red .progress .inner .percent {
  color: #a30f0f;
}
.red .progress .inner .percent {
  text-shadow: 0 0 10px #7a0b0b;
}
.orange {
  margin-top: 15px;
}
.orange .progress {
  border: 5px solid #f07c3e;
}
.orange .progress {
  box-shadow: 0 0 20px #7e320a;
}
.orange .progress .inner .water {
  top: 50%;
}
.orange .progress .inner .water {
  background: rgba(240,124,62,0.5);
}
.orange .progress .inner .water {
  box-shadow: 0 0 20px #a0400c;
}
.orange .progress .inner .percent {
  color: #a8430d;
}
.orange .progress .inner .percent {
  text-shadow: 0 0 10px #7e320a;
}
@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
</style>


<style class="cp-pen-styles">body {
  background: #222;
}

#battery, #reflection {
  margin: 0 auto 2px auto;
  width: 225px;
}

#battery {
  margin-top: -10px;
  margin-left: 80px;
}

#reflection {
  opacity: 0.4;
  transform: scaleY(-1);
}

.bottom, .middle, .top-b, .top-a {
  margin-right: -4px;
}

.bottom, .top-b {
  background: #444 linear-gradient(rgba(255, 255, 255, 0.3) 0%, transparent 13%, transparent 20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 30%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.5) 90%);
  border-radius: 3px;
  display: inline-block;
  height: 50px;
  width: 8px;
  vertical-align: middle;
}

.middle {
  border: 1px solid #222;
  border-radius: 3px;
  display: inline-block;
  overflow: hidden;
  height: 50px;
  width: 200px;
  vertical-align: middle;
}

.top-a {
  background: #444 linear-gradient(rgba(255, 255, 255, 0.3) 0%, transparent 13%, transparent 20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 30%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.5) 90%);
  border-radius: 3px;
  display: inline-block;
  height: 50px;
  width: 8px;
  vertical-align: middle;
}

.fill {
  background: linear-gradient(#0c0 0%, #00aa00 50%, #0c0 100%);
  box-shadow: 0 0 10px #0c0;
  height: 96px;
  margin: 2px 0;
  width: 75%;
}

.glass {
  background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, transparent 10%, transparent 20%, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.25) 20%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.25) 90%);
  border-radius: 3px;
  display: block;
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 1;
}

.fade {
  background: linear-gradient(#222 0%, #222 50%, transparent 100%);
  position: absolute;
  height: 100%;
  width: 101%;
  z-index: 2;
}
</style>
<style>
.piclist li{ float:left;}
.swaplist{ position:absolute; left:-3000px; top:0px}
.og_prev,.og_next{ width:30px; height:50px; background:url(/img/icon.png) no-repeat; background:url(../images/icon_ie6.png) no-repeat\9; position:absolute; top:33px; z-index:99; cursor:pointer;filter:alpha(opacity=70); opacity:0.7;}
.og_prev{ background-position:0 -60px; left:4px;}
.og_next{ background-position:0 0; right:4px;}
</style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <header class="main-header">
    <!-- Logo -->
    <a href="index2.html" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>平台</b></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>智能垃圾桶</b></span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
         
          <li>
           <div style="position: relative;display: table;border: 1px solid #374850 transparent;top:10px" class="input-group">
               <input type="text" name="q" class="form-control" style="height:35px;box-shadow: none;border: 1px solid transparent;" placeholder="Search...">
               <span class="" style="display: table-cell;">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat" style="margin-top:-27px;height:35px"><i class="fa fa-search"></i>
                </button>
              </span>
           </div>
          </li>
          <!-- Notifications: style can be found in dropdown.less -->
          <li class="dropdown notifications-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-bell-o"></i>
              <span class="label label-warning">10</span>
            </a>
            <ul class="dropdown-menu">
              <li class="header">You have 10 notifications</li>
              <li>
                <!-- inner menu: contains the actual data -->
                <ul class="menu">
                  <li>
                    <a href="#">
                      <i class="fa fa-users text-aqua"></i> 5 new members joined today
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the
                      page and may cause design problems
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <i class="fa fa-users text-red"></i> 5 new members joined
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <i class="fa fa-shopping-cart text-green"></i> 25 sales made
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <i class="fa fa-user text-red"></i> You changed your username
                    </a>
                  </li>
                </ul>
              </li>
              <li class="footer"><a href="#">View all</a></li>
            </ul>
          </li>
          
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
              <span class="hidden-xs">admin</span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
                <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">

                <p>
                  Alexander Pierce - Web Developer
                  <small>Member since Nov. 2012</small>
                </p>
              </li>
              <!-- Menu Body -->
              <li class="user-body">
                <div class="row">
                  <div class="col-xs-4 text-center">
                    <a href="#">Followers</a>
                  </div>
                  <div class="col-xs-4 text-center">
                    <a href="#">Sales</a>
                  </div>
                  <div class="col-xs-4 text-center">
                    <a href="#">Friends</a>
                  </div>
                </div>
                <!-- /.row -->
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="#" class="btn btn-default btn-flat">Profile</a>
                </div>
                <div class="pull-right">
                  <a href="#" class="btn btn-default btn-flat">Sign out</a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
          <li>
            <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
          </li>
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu">
        <li class="header">平台</li>
        <li><a href="/main"><i class="fa fa-circle-o text-aqua"></i> <span>主页</span></a></li>
        <li><a href="devices/new"><i class="fa fa-plus text-aqua"></i> <span>新建</span></a></li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-dashboard"></i> 
            <span>监控面板</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/panel"><i class="fa fa-circle-o"></i>实时设备</a></li>
          </ul>
        </li>
        <li class="treeview" >
          <a href="#">
            <i class="fa fa-files-o"></i>
            <span>设备管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/lists"><i class="fa fa-circle-o"></i> 设备信息</a></li>
          </ul>
        </li>
        <li class="treeview   active" >
          <a href="#">
            <i class="fa fa-files-o"></i>
            <span>应用场景</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li class="active"><a href="start"><i class="fa fa-circle-o"></i> 典型案例</a></li>
          </ul>
        </li>
        <li class="treeview" style="">
          <a href="#">
            <i class="fa fa-edit"></i>
            <span>告警管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="alarmlists"><i class="fa fa-circle-o"></i> 报警详情</a></li>
          </ul>
        </li>
        <li class="treeview" style="">
          <a href="#">
            <i class="fa fa-edit"></i>
            <span>客户管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i> 客户信息</a></li>
          </ul>
        </li>
        <li class="treeview" style="">
          <a href="#">
            <i class="fa fa-edit"></i>
            <span>清运管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i> 清运人员</a></li>
          </ul>
        </li>
        <li class="treeview" style="">
          <a href="#">
            <i class="fa fa-edit"></i>
            <span>连接管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i>流量信息</a></li>
          </ul>
        </li>
        <li class="treeview" style="">
          <a href="#">
            <i class="fa fa-edit"></i>
            <span>统计报表</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-circle-o"></i> 客户发展</a></li>
          </ul>
        </li>
        <li class="treeview" style="display:none">
          <a href="#">
            <i class="fa fa-edit"></i> <span>Forms</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="pages/forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
            <li><a href="pages/forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
            <li><a href="pages/forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
          </ul>
        </li>
       
        
      
       
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header" style="display:none">
      <h1>
        <small></small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> 主页</a></li>
        <li class="active">分布图</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
      <!-- Small boxes (Stat box) -->
      <div class="row">
        <div class="og_prev"  id= "og_prev" style="float:left;left: 245px;top:110px"></div>
        <div class="og_next" style="float:right;top:110px;right:15px"></div>
        <ul class="piclist mainlist" style="-webkit-padding-start: 0px">
        <li style="width:25%;float: left;list-style-type:none;">
        <div class="col-lg-3 col-xs-6"   id="choice_id" style="width:100%">
          <!-- small box -->
          <div class="small-box" style="background:url('/img/stjy.jpg') repeat;filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')'; -moz-
background-size:100% 100%;  background-size:100% 100%;height:100% ">
            <div class="inner"  style="height:100px;color:#fff">
              <h6>杭州西湖</h6>

              <p></p>
            </div>
            <div class="icon">
              <i class="ion "></i>
            </div>
            <a href="javascript:void(0)" onclick="choiceTop('杭州西湖')" class="small-box-footer">查看 <i class="fa fa-arrow-circle-right"></i></a>
          </div>
        </div>
        </li>
        <!-- ./col -->
        <li style="width:25%;float: left;list-style-type:none;">
        <div class="col-lg-3 col-xs-6" style="width:100%;">
          <!-- small box -->
          <div class="small-box " style="background:url('/img/dsn.jpg') repeat;filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')'; -moz-background-size:100% 100%;  background-size:100% 100%;height:100% ">
            <div class="inner"  style="height:100px; color:#fff">
              <h6>上海迪斯尼</h6>

              <p></p>
            </div>
            <div class="icon">
              <i class="ion "></i>
            </div>
            <a href="javascript:void(0)" onclick="choiceTop('上海迪斯尼')" class="small-box-footer">查看 <i class="fa fa-arrow-circle-right"></i></a>
          </div>
        </div>
        </li>
        <!-- ./col -->
        <li style="width:25%;float: left; list-style-type:none;">
        <div class="col-lg-3 col-xs-6" style="width:100%;">
          <!-- small box -->
          <div class="small-box" style="background:url('/img/dfmz.jpg') repeat;filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')'; -moz-background-size:100% 100%;  background-size:100% 100%;height:100% ">
            <div class="inner" style="height:100px;color:#fff">
              <h6>上海外滩</h6>

              <p></p>
            </div>
            <div class="icon">
              <i class="ion "></i>
            </div>
            <a href="javascript:void(0)" onclick="choiceTop('上海浦东')" class="small-box-footer">查看<i class="fa fa-arrow-circle-right"></i></a>
          </div>
        </div>
        </li>
        <!-- ./col -->
        <li style="width:25%;float: left; list-style-type:none;">
        <div class="col-lg-3 col-xs-6" style="width:100%;">
          <!-- small box -->
          <div class="small-box " style="background:url('/img/dst.jpg') repeat;filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')'; -moz-background-size:100% 100%;  background-size:100% 100%;height:100% ">
            <div class="inner"  style="height:100px; color:#fff">
              <h6>广州时代广场</h6>

              <p></p>
            </div>
            <div class="icon">
              <i class="ion "></i>
            </div>
            <a href="javascript:void(0)" onclick="choiceTop('广州时代广场')" class="small-box-footer">查看<i class="fa fa-arrow-circle-right"></i></a>
          </div>
        </div>
        </li>
        <!-- ./col -->
        <li style="width:25%;float: left; list-style-type:none;display:none">
        <div class="col-lg-3 col-xs-6" style="width:100%;">
          <!-- small box -->
          <div class="small-box " style="background:url('/img/gzbyjc.jpg') repeat;filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')'; -moz-background-size:100% 100%;  background-size:100% 100%;height:100% ">
            <div class="inner"  style="height:100px; color:#fff">
              <h6>广州白云机场</h6>

              <p></p>
            </div>
            <div class="icon">
              <i class="ion "></i>
            </div>
            <a href="javascript:void(0)" onclick="choiceTop('广州白云机场')" class="small-box-footer">查看<i class="fa fa-arrow-circle-right"></i></a>
          </div>
        </div>
        </li>
        <ul>
        <!-- ./col -->
      </div>
      <!-- /.row -->
      <div class="row" >
        <section class="col-lg-12 connectedSortable">
          <div id="exploremap" style="height: 600px; width: 100%"></div>
            </div>
        </section>
      </div>
      <!-- Main row -->

      <div class="row"  style="display:none">
        <!-- Left col -->
        <section class="col-lg-7 connectedSortable">
          <!-- Custom tabs (Charts with tabs)-->
          <div class="nav-tabs-custom">
            <!-- Tabs within a box -->
            <ul class="nav nav-tabs pull-right">
              <li class="active"><a href="#revenue-chart" data-toggle="tab">Area</a></li>
              <li><a href="#sales-chart" data-toggle="tab">Donut</a></li>
              <li class="pull-left header"><i class="fa fa-inbox"></i> Sales</li>
            </ul>
            <div class="tab-content no-padding">
              <!-- Morris chart - Sales -->
              <div class="chart tab-pane active" id="revenue-chart" style="position: relative; height: 300px;"></div>
              <div class="chart tab-pane" id="sales-chart" style="position: relative; height: 300px;"></div>
            </div>
          </div>
          <!-- /.nav-tabs-custom -->

          

          

        </section>
        <!-- /.Left col -->
        <!-- right col (We are only adding the ID to make the widgets sortable)-->
        <section class="col-lg-5 connectedSortable">

          <!-- Map box -->
          <div class="box box-solid bg-light-blue-gradient">
            <div class="box-header">
              <!-- tools box -->
              <div class="pull-right box-tools">
                <button type="button" class="btn btn-primary btn-sm daterange pull-right" data-toggle="tooltip" title="Date range">
                  <i class="fa fa-calendar"></i></button>
                <button type="button" class="btn btn-primary btn-sm pull-right" data-widget="collapse" data-toggle="tooltip" title="Collapse" style="margin-right: 5px;">
                  <i class="fa fa-minus"></i></button>
              </div>
              <!-- /. tools -->

              <i class="fa fa-map-marker"></i>

              <h3 class="box-title">
                Visitors
              </h3>
            </div>
            <div class="box-body">
              <div id="world-map" style="height: 250px; width: 100%;"></div>
            </div>
            <!-- /.box-body-->
            <div class="box-footer no-border">
              <div class="row">
                <div class="col-xs-4 text-center" style="border-right: 1px solid #f4f4f4">
                  <div id="sparkline-1"></div>
                  <div class="knob-label">Visitors</div>
                </div>
                <!-- ./col -->
                <div class="col-xs-4 text-center" style="border-right: 1px solid #f4f4f4">
                  <div id="sparkline-2"></div>
                  <div class="knob-label">Online</div>
                </div>
                <!-- ./col -->
                <div class="col-xs-4 text-center">
                  <div id="sparkline-3"></div>
                  <div class="knob-label">Exists</div>
                </div>
                <!-- ./col -->
              </div>
              <!-- /.row -->
            </div>
          </div>
          <!-- /.box -->

          <!-- solid sales graph -->
          <div class="box box-solid bg-teal-gradient">
            <div class="box-header">
              <i class="fa fa-th"></i>

              <h3 class="box-title">Sales Graph</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn bg-teal btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
                </button>
                <button type="button" class="btn bg-teal btn-sm" data-widget="remove"><i class="fa fa-times"></i>
                </button>
              </div>
            </div>
            <div class="box-body border-radius-none">
              <div class="chart" id="line-chart" style="height: 250px;"></div>
            </div>
            <!-- /.box-body -->
            <div class="box-footer no-border">
              <div class="row">
                <div class="col-xs-4 text-center" style="border-right: 1px solid #f4f4f4">
                  <input type="text" class="knob" data-readonly="true" value="20" data-width="60" data-height="60" data-fgColor="#39CCCC">

                  <div class="knob-label">Mail-Orders</div>
                </div>
                <!-- ./col -->
                <div class="col-xs-4 text-center" style="border-right: 1px solid #f4f4f4">
                  <input type="text" class="knob" data-readonly="true" value="50" data-width="60" data-height="60" data-fgColor="#39CCCC">

                  <div class="knob-label">Online</div>
                </div>
                <!-- ./col -->
                <div class="col-xs-4 text-center">
                  <input type="text" class="knob" data-readonly="true" value="30" data-width="60" data-height="60" data-fgColor="#39CCCC">

                  <div class="knob-label">In-Store</div>
                </div>
                <!-- ./col -->
              </div>
              <!-- /.row -->
            </div>
            <!-- /.box-footer -->
          </div>
          <!-- /.box -->

        </section>
        <!-- right col -->
      </div>
      <!-- /.row (main row) -->

    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  <footer class="main-footer">
    <div class="pull-right hidden-xs">
      <b></b> 
    </div>
    <strong>Copyright &copy; 2015-2017 <a href="#">中国电信北京研究院</a>.</strong> All rights
    reserved.
  </footer>

  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- jQuery 2.2.3 -->
<script src="plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<!-- Bootstrap 3.3.6 -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script src="/js/user/raphael-min.js"></script>
<script src="plugins/morris/morris.min.js"></script>
<!-- Sparkline -->
<script src="plugins/sparkline/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="plugins/knob/jquery.knob.js"></script>
<!-- daterangepicker -->
<script src="/js/user/moment.min.js"></script>
<script src="plugins/daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="plugins/datepicker/bootstrap-datepicker.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/app.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
<script src="../js/device/gps.js"></script>

<script type="text/javascript">
$(document).ready(function() {
   var bhide=0;
   $("#choice_id").mouseover(function (){ 
           if(bhide==1){
             if($(".og_prev").is(":hidden"))
              $(".og_prev").css("display", "block");
           }
        }).mouseout(function (){  
           //$(".og_prev").hide();
           bhide=1;
        });  
   $(".og_prev").mouseover(function (){ 
            bhide=1;
        }).mouseout(function (){  
           bhide=0;
        });
   $(".og_prev").click(function (){ 
                var items=$(".piclist li")
                head=0;
                items[head].style.display="none";
                head =(head+1)%5;
                tail =(head+3)%5;
                items[tail].style.display="block";
                var parent = items[0].parentNode;
                parent.appendChild(items[0]);
                
        }) 
   head=0;
   tail=3;
   time = window.setInterval(function(){
                var items=$(".piclist li")
                head=0;
                items[head].style.display="none";
                head =(head+1)%5;
                tail =(head+3)%5;
                items[tail].style.display="block";
                var parent = items[0].parentNode;
                parent.appendChild(items[0]);
                
                
		$(".piclist li").each(function(index){
                })
	},5000);
 });
</script>
<script src="http://stevenlevithan.com/assets/misc/date.format.js"></script>
<script type="text/javascript">
    var map = new AMap.Map('exploremap', {
        resizeEnable: true,
        zoom:4
        
    });
   var markerArr = new Array();
   var markers = [];
   var markercitys=[];
   Zoompro();
   AMap.event.addListener(map,'zoomend',function(){
        //alert(map.getZoom());
        if (map.getZoom()>8){
            map.remove(markercitys);
            if(markers.length<1){
              ZoomCity();
            }else{
              map.remove(markers);
              for (var i = 0; i < markers.length; i++){
                        marker=markers[i];
                        marker.setMap(map);
                        marker.setLabel({
                        offset: new AMap.Pixel(20, 20),//修改label相对于maker的位置
                        content: conts
                        });
                 
              }
            }
        }else{
           map.remove(markers);
           map.remove(markercitys);
           if(markercitys.lenght<1){
               Zoompro();
           }else{
              for (var i = 0; i < markercitys.length; i++){
                        marker=markercitys[i];
                        marker.setMap(map);
                 
              }
             
           }
        }
        
    });
   var infoWindow = new AMap.InfoWindow({offset: new AMap.Pixel(0, -40),isCustom: true});
   function Zoompro(){
     
           var imgpath="/img/mark_g.png";
           marker = new AMap.Marker({
                                     icon: imgpath,
                                     position: [116.397045,39.904989]
                                     });
           conts="北京2个设备";
           marker.setMap(map);
           marker.setLabel({
           offset: new AMap.Pixel(20, 20),//修改label相对于maker的位置
           content: conts
           });
           markercitys.push(marker);
                                                                  
           marker = new AMap.Marker({
                                     icon: imgpath,
                                     position: [121.472644,31.231706]
                                     });
           conts="上海市50个设备";
           marker.setMap(map);
           marker.setLabel({
           offset: new AMap.Pixel(20, 20),//修改label相对于maker的位置
           content: conts
           });
           markercitys.push(marker);

           marker = new AMap.Marker({
                                     icon: imgpath,
                                     position: [113.280637,23.125178]
                                     });
           conts="广东40个设备";
           marker.setMap(map);
           marker.setLabel({
           offset: new AMap.Pixel(20, 20),//修改label相对于maker的位置
           content: conts
           });
           markercitys.push(marker);

           marker = new AMap.Marker({
                                     icon: imgpath,
                                     position: [118.767413,32.041544]
                                     });
           conts="江苏30个设备";
           marker.setMap(map);
           marker.setLabel({
           offset: new AMap.Pixel(20, 20),//修改label相对于maker的位置
           content: conts
           });
           markercitys.push(marker);

           marker = new AMap.Marker({
                                     icon: imgpath,
                                     position: [120.153576,30.287459]
                                     });
           conts="浙江10个设备";
           marker.setMap(map);
           marker.setLabel({
           offset: new AMap.Pixel(20, 20),//修改label相对于maker的位置
           content: conts
           });
           markercitys.push(marker);

   }
   function ZoomCity(){
      $.ajax({
   					type:"post",
  					url:"/devices/getDevices?pid=",
   					success:function(data){
   						var flag = data.code;
   						if(flag == 0){//有数据
   							var dataObj=data.data; 
   							var htm = '';
                                                        
   							for(var i=0;i<dataObj.length;i++){
   								markerArr[i] = dataObj[i];
                                                                if(!dataObj[i].lon){
                                                                   continue;
                                                                }
                                                                var position=[];
                                                                position[0]=dataObj[i].lon;
                                                                position[1]=dataObj[i].lat;
                                                                if(typeof(dataObj[i].gps_type) != "undefined"){
                                                                  position[0]=dataObj[i].lon;
                                                                  position[1]=dataObj[i].lat; 
                                                                }else{
                                                                  var lgd=GPS.gcj_encrypt(dataObj[i].lat,dataObj[i].lon);
                                                                  position[0]=lgd.lon;
                                                                  position[1]=lgd.lat;
                                                                }
                                                                //alert(lgd);
                                                                var imgpath="/img/mark_b.png";
                                                                var timestamp = Date.parse(new Date())/1000;
                                                                if (typeof(dataObj[i].update_time) != "undefined"){
                                                                     if(dataObj[i].update_time > timestamp-180){
                                                                       imgpath="/img/mark_g.png";
                                                                     }
                                                                }
                                                                
                                                                var imgpath="/img/mark_g.png";
                                                                if (typeof(dataObj[i].alarm_type) != "undefined"){
                                                                      imgpath="/img/mark_d.png"
                                                                }
                                                                marker = new AMap.Marker({
                                                                icon: imgpath,
                                                                position: position
                                                                });
                                                                conts=dataObj[i].device_name;
                                                                conts="";
                                                                marker.setMap(map);
                                                                 marker.setLabel({
                                                                 offset: new AMap.Pixel(20, 20),//修改label相对于maker的位置
                                                                 content: conts
                                                                });
                                                                  


                                                                var info = [];
                                                                info.push("<div><div><img style=\"float:left;\" src=\" http://webapi.amap.com/images/autonavi.png \"/></div> ");
                                                                info.push("<div style=\"padding:0px 0px 0px 4px;\"><b>高德软件</b>");
                                                                info.push("电话 : 010-84107000   邮编 : 100102");
                                                                info.push("地址 :北京市朝阳区望京阜荣街10号首开广场4层</div></div>");

                                                                //marker.content = info.join("<br/>");
                                                                marker.content = dataObj[i].id;
                                                                marker.on('mouseover', markerClick);
                                                                //marker.on('click', markerClick);
                                                                //marker.emit('click', {target: marker});
                                                                markers.push(marker);

                                                                
							}
   						}else{
   						}
   					}
   				});
    }
    function choiceTop(city){
       if(city=="上海迪斯尼"){
        map.setZoomAndCenter(16, [121.6641418032, 31.1433843458]);
       }else if (city=="上海浦东"){
         map.setZoomAndCenter(16, [121.5072954453, 31.2146750622]);
       }else if (city=="杭州"){
         map.setZoomAndCenter(10, [120.29411316, 30.24779777]);
       }else if (city=="广州时代广场"){
         map.setZoomAndCenter(15, [113.2841521310, 23.2232928339]);
       }else if (city=="广州白云机场"){
         map.setZoomAndCenter(15, [113.3033526469, 23.3891944265]);
       }else if (city=="杭州西湖"){
         map.setZoomAndCenter(15, [120.1414890310, 30.2465755821]);
       }
    }
    function markerClick(e) {
        //infoWindow.setContent(e.target.content);
        //infoWindow.open(map, e.target.getPosition());
        $.ajax({
   		type:"post",
  		url:"/getSensor?id="+e.target.content,
   		success:function(data){
                     var sfull="";
                     var opennum="0";
                     var compressNum=0;
                     for(var i=0;i<data.sensor.length;i++){
                        se=data.sensor[i];
                        if (se.name==("垃圾是否满")){
                            sfull=se.tag;
                        }
                        if (se.name==("今天开门次数累计")){
                            opennum=se.value;
                        }
                        if (se.name==("今天70%启动压缩次数")){
                            compressNum+=parseInt(se.value);
                        }
                        if (se.name==("今天90%启动压缩次数")){
                            compressNum+=parseInt(se.value);
                        }
                     }
                     var info = [];
                     info.push("<div><div style=\"padding:0px 0px 0px 0px;\"><b>"+data.device.device_name+"</b></div>");
                     info.push("<div style=\"padding:0px 0px 0px 0px;line-height:18px;\">设备编号: "+data.device.device_sn+"");
                     var timestamp = new Date(data.device.create_time).getTime();
                     var d = new Date(timestamp);  
                     var date1 = (d.getFullYear()) + "-" + (d.getMonth() + 1) + "-" +(d.getDate()) + " " + (d.getHours()) + ":" + (d.getMinutes()) + ":" + (d.getSeconds());
                     info.push("<div style=\"padding:0px 0px 0px 0px;line-height:18px;\">接入时间: "+date1+"");
                     info.push("垃圾桶状态: <div style=\"left:200px\"><img src=\"/img/Connected.png\" height=\"30\" width=\"40\" ></div>");
                     info.push("<a href='/trash?id="+data.device.id+"'><font color='#3385ff'>详细信息</font></a>");
                     info.push("</div></div>");
                     var info1=[]
                      var title = data.device.device_name;
                     info1.push("<div class=\" box-widget widget-user-2 \"> <div class=\"widget-user-header bg-yellow\">  <div class=\"widget-user-image\"> <img class=\"img-circle\" src=\"dist/img/user7-128x128.jpg\"> </div></div></div>");
                     content = [];
                     content.push("<img height= '140' width='200' src='img/box1.jpg'>接入时间: "+date1+"");
                     content.push("</b>")
                     content.push("设备SN:"+data.device.device_sn)
                     content.push("</b>")
                     content.push("垃圾桶状态: <div style=\"float: right; margin-right:50px\"><img src=\"/img/Connected.png\" height=\"30\" width=\"40\" ></div>");
                     content.push("</b>")
                     content.push("<a href='/trash?id="+data.device.id+"'>详细信息</a>");
                     var content1=createInfoWindow(title, content.join("<br/>"))
                     infoWindow.setContent(content1);
                     //infoWindow.setContent(info1.join("<br/>"));
                     infoWindow.open(map, e.target.getPosition());
                     //alert("OK");
                }
        });
        //构建自定义信息窗体
    function createInfoWindow(title, content) {
        var info = document.createElement("div");
        info.className = "info";

        //可以通过下面的方式修改自定义窗体的宽高
        info.style.width = "400px";
        // 定义顶部标题
        var top = document.createElement("div");
        var titleD = document.createElement("div");
        var closeX = document.createElement("img");
        top.className = "info-top";
        titleD.innerHTML = title;
        closeX.src = "http://webapi.amap.com/images/close2.gif";
        closeX.onclick = closeInfoWindow;

        top.appendChild(titleD);
        top.appendChild(closeX);
        info.appendChild(top);

        // 定义中部内容
        var middle = document.createElement("div");
        middle.className = "info-middle";
        middle.style.backgroundColor = 'white';
        middle.innerHTML = content;
        info.appendChild(middle);

        // 定义底部内容
        var bottom = document.createElement("div");
        bottom.className = "info-bottom";
        bottom.style.position = 'relative';
        bottom.style.top = '0px';
        bottom.style.margin = '0 auto';
        var sharp = document.createElement("img");
        sharp.src = "http://webapi.amap.com/images/sharp.png";
        bottom.appendChild(sharp);
        info.appendChild(bottom);
        return info;
    }

    //关闭信息窗体
    function closeInfoWindow() {
        map.clearInfoWindow();
    }
   }

</script>

</body>
</html>

